package cn.boge.hrm.client;

import cn.boge.hrm.doc.CourseDoc;
import cn.boge.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

//@RequestMapping("/order")
@FeignClient(value = "hrm-search",fallbackFactory = ESCourseClientFallbackFactory.class) //标识是openfeign接口，设置要调佣服务名
//@FeignClient(value = "ORDER-SERVICE",fallback = OrderServiceClientImpl.class) //标识是openfeign接口，设置要调佣服务名
public interface ESCourseClient{
    @RequestMapping(value = "/es/save",method = RequestMethod.POST)
    public AjaxResult save(@RequestBody CourseDoc couresDoc);
}
